package com.qfedu.service.impl;

import com.qfedu.dao.ClinicpatientDao;
import com.qfedu.pojo.Clinicpatient;
import com.qfedu.service.ClinicpatientService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class ClinicpatientServiceImpl implements ClinicpatientService {
    @Resource
    private ClinicpatientDao clinicpatientDao;
    @Override
    public Clinicpatient getClinicpatientByPid(int pid) {
        return clinicpatientDao.getClinicpatientByPid(pid);
    }

    @Override
    public Clinicpatient updateClinicpatient(Clinicpatient clinicpatient) {
        return clinicpatientDao.updateClinicpatient(clinicpatient);
    }

    @Override
    public int saveClinicpatient(Clinicpatient c) {
        return clinicpatientDao.saveClinicpatient(c);
    }
}
